package neu.edu.vn.appmusic.utils;

import neu.edu.vn.appmusic.utils.music.MyMusic;
import android.app.Application;
import android.content.Context;

public class MyApplication extends Application{

    private static Context context;
    private MyMusic myMusic;
    private static MyApplication instance;
    
    
    public static MyApplication getInstance(){
    	if(instance == null){
    		instance = new MyApplication();
    	}
    	return instance;
    }
    
    public MyApplication() {
		instance = this;
	}
    
    public void onCreate(){
        super.onCreate();
        MyApplication.context = getApplicationContext();
    }

    public static Context getAppContext() {
        return MyApplication.context;
    }

	public MyMusic getMyMusic() {
		return myMusic;
	}

	public void setMyMusic(MyMusic myMusic) {
		this.myMusic = myMusic;
	}
}
